<?php
    include './base.php';
      //多表列合
  $sql ='select * from ruku inner join chuku where ruku.`r_id` = chuku.c_id';
  $res = mysql_query($sql);
  
  $arr = array();
  while($row = mysql_fetch_assoc($res)){
    array_push($arr,$row);
  };
  print_r(json_encode($arr));
?>